﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Assignment2.States;
using Assignment2.Conditions;

namespace Assignment2.Transitions
{
    class WaitingToBoringTransition : Transition
    {
        public WaitingToBoringTransition(ref Integer boringValue, ref Integer hungryValue, ref Integer toyValue, ref Integer foodValue, ref Integer idleTime)
            : base()
        {
            condition = new IsGreaterThanCondition(boringValue,new Integer(1440));
        }

        public override void updateMember()
        {
            targetState = StateAndTransitionPool.Boring;
        }
    }
}
